//
//  API.h
//  HengYouCai
//
//  Created by ycgwl on 2017/5/12.
//  Copyright © 2017年 lwj. All rights reserved.
//

#ifndef API_h
#define API_h

// cui "http://192.168.0.200:8080"
//wang http://192.168.0.240:8080

//域名JCWBaseURL
#ifdef DEBUG
//测试
#define IPHost @"https://api.ziyijinfu.com/" //[WLFileManager readUserDataForKey:@"JCWBaseURL"]?:@""
#else
//线上
#define IPHost  @"https://api.ziyijinfu.com/"  //[WLFileManager readUserDataForKey:@"JCWBaseURL"]?:@""
#endif


/**
 首页
 */
#define HYC_HOME [NSString stringWithFormat:@"%@home/home",IPHost]
/**
 图片验证码
 */
#define HYC_GenerateImage [NSString stringWithFormat:@"%@generateImage",IPHost]
/**
 手机验证码
 */
#define HYC_MobileCode [NSString stringWithFormat:@"%@getMobileCode",IPHost]
/**
 注册
 */
#define HYC_Sign [NSString stringWithFormat:@"%@sign",IPHost]
/**
 登录
 */
#define HYC_LoginCheck [NSString stringWithFormat:@"%@loginCheck",IPHost]
/**
 用户信息
 */
#define HYC_UserInfo [NSString stringWithFormat:@"%@userInfo",IPHost]
/**
 忘记密码界面手机验证码
 */
#define HYC_GetMobileCode [NSString stringWithFormat:@"%@getReSetPwdCode",IPHost]
/**
 重置登录密码
 */
#define HYC_ReSetPwd [NSString stringWithFormat:@"%@reSetPwd",IPHost]
/**
 实名认证
 */
#define HYC_AccountAction [NSString stringWithFormat:@"%@account/realNameAuthentication",IPHost]
/**
 实名认证预绑卡、
 */
#define HYC_Account_BankCardReadyBind [NSString stringWithFormat:@"%@account/bindBankCard/readyBind",IPHost]
/**
 实名认证绑卡、
 */
#define HYC_Account_BankCardConfirmBind [NSString stringWithFormat:@"%@account/bindBankCard/confirmBind",IPHost]
/**
 实名认证获取已预留手机号验证码
 */
#define HYC_Account_SendSms [NSString stringWithFormat:@"%@account/sendMobileSms",IPHost]

/**
 获取银行卡
 */
#define HYC_Account_BankList [NSString stringWithFormat:@"%@account/bindBankCard",IPHost]
/**
 我的银行卡
 */
#define HYC_Account_MyBank [NSString stringWithFormat:@"%@account/myBank",IPHost]

/**
 修改登录密码
 */
#define HYC_Account_UpdateLoginPsd [NSString stringWithFormat:@"%@account/updateLoginPassword",IPHost]
/**
 设置交易密码
 */
#define HYC_Account_SetTradePassword [NSString stringWithFormat:@"%@account/setTradePassword",IPHost]
/**
 修改交易密码
 */
#define HYC_Account_UpdateTradePassword [NSString stringWithFormat:@"%@account/updateTradePassword",IPHost]
/**
 发送忘记交易密码短信验证码
 */
#define HYC_Account_SendResetPaySms [NSString stringWithFormat:@"%@account/sendResetPaySms",IPHost]
/**
 忘记交易密码时设置交易密码
 */
#define HYC_Account_ResetPayPassword [NSString stringWithFormat:@"%@account/resetPayPassword",IPHost]
/**
验证忘记交易密码验证码
 */
#define HYC_Account_VerifyResetPayCode [NSString stringWithFormat:@"%@account/verifyResetPayCode",IPHost]
/**
 退出登录
 */
#define HYC_LoginOut [NSString stringWithFormat:@"%@logout",IPHost]
/**
 获取理财产品类型
 */
#define HYC_Product_GenreList [NSString stringWithFormat:@"%@products/genreList",IPHost]
/**
 理财产品列表一览
 */
#define HYC_Product_ProductsList [NSString stringWithFormat:@"%@products/productsList",IPHost]


//---------------------------
/**
 获取理财产品详情
 */
#define HYC_Product_Details [NSString stringWithFormat:@"%@products/details",IPHost]

/**
 估算收益
 */
#define HYC_Product_CalculateProfit [NSString stringWithFormat:@"%@products/calculationProfit",IPHost]
/**
 可用红包 加息券
 */
#define HYC_Product_Bonuses [NSString stringWithFormat:@"%@products/bonuses",IPHost]
/**
 获取项目详情
 */
#define HYC_Product_ProductsDetails(args) [NSString stringWithFormat:@"%@products/productsDetails?id=%@",IPHost,args]

/**
 获取评估报告
 */
#define HYC_Product_ProductsReport(args) [NSString stringWithFormat:@"%@products/productsReport?id=%@",IPHost,args]

/**
 获取投资记录
 */
#define HYC_Product_OrderList [NSString stringWithFormat:@"%@products/orderList",IPHost]

/**
 确认投资
 */
#define HYC_Product_State [NSString stringWithFormat:@"%@products/state",IPHost]

/**
 确认支付
 */
#define HYC_Product_Payment [NSString stringWithFormat:@"%@products/payment",IPHost]
//------------------------------------------
/**
 我的钱包
 */
#define HYC_Wallet_ShowWallet [NSString stringWithFormat:@"%@myWallet/showWallet",IPHost]

/**
 交易流水 全部
 */
#define HYC_Wallet_TradedetailList [NSString stringWithFormat:@"%@myWallet/tradedetailList",IPHost]
/**
 交易流水 类型
 */
#define HYC_Wallet_TradeTypeList [NSString stringWithFormat:@"%@myWallet/tradeTypeList",IPHost]
/**
 交易流水 列表内容
 */
#define HYC_Wallet_TradeListContent [NSString stringWithFormat:@"%@myWallet/tradeDetailList",IPHost]
/**
 充值流水
 */
#define HYC_Wallet_RechargeList [NSString stringWithFormat:@"%@myWallet/rechargeList",IPHost]
/**
 提现流水
 */
#define HYC_Wallet_WithdrawList [NSString stringWithFormat:@"%@myWallet/withdrawList",IPHost]
/**
 投资流水
 */
#define HYC_Wallet_InvestList [NSString stringWithFormat:@"%@myWallet/investList",IPHost]
/**
 回款流水
 */
#define HYC_Wallet_ReceivedList [NSString stringWithFormat:@"%@myWallet/receivedList",IPHost]
/**
 奖励流水
 */
#define HYC_Wallet_RewardList [NSString stringWithFormat:@"%@myWallet/rewardList",IPHost]

/**
 投资流水 类型
 */
#define HYC_Wallet_InvestListType [NSString stringWithFormat:@"%@myWallet/investTypeList",IPHost]

/**
 投资记录查询
 */
#define HYC_Wallet_InvestDetailList [NSString stringWithFormat:@"%@myWallet/investDetailList",IPHost]
/**
 投资记录详情查询
 */
#define HYC_Wallet_InvestDetailInfo [NSString stringWithFormat:@"%@myWallet/investDetailInfo",IPHost]
/**
 优惠券查询
 */
#define HYC_Wallet_MyredPackList [NSString stringWithFormat:@"%@myWallet/myredPackList",IPHost]
/**
 邀请记录 已注册
 */
#define HYC_Account_InvateRegList [NSString stringWithFormat:@"%@account/invateRegList",IPHost]
/**
 邀请记录 已投资
 */
#define HYC_Account_InvateInvestList [NSString stringWithFormat:@"%@account/invateProfitList",IPHost]
/**
 充值页面初期化
 */
#define HYC_PaymentInit [NSString stringWithFormat:@"%@payment/init",IPHost]
/**
 提现页面初期化
 */
#define HYC_Withdraw_WithdrawInit [NSString stringWithFormat:@"%@withdraw/init",IPHost]
/**
 确定提现接口
 */
#define HYC_Withdraw_WithdrawSub [NSString stringWithFormat:@"%@withdraw/submit",IPHost]
/**
 确定充值富友接口
 */
#define HYC_PaymentSubmit [NSString stringWithFormat:@"%@/payment/submit",IPHost]


/**
 支付方式
 */
#define HYC_Payment_FindPayMentList [NSString stringWithFormat:@"%@payment/findPayMentList",IPHost]
/**
 吊起支付
 */
#define HYC_Payment_FygoldRecharge [NSString stringWithFormat:@"%@payment/fygoldRecharge",IPHost]
/**
 消息
 */
#define HYC_Account_SysAlertMessage [NSString stringWithFormat:@"%@account/sysAlertMessage",IPHost]
/**
 公告
 */
#define HYC_MallHotspot [NSString stringWithFormat:@"%@information/articleList",IPHost]
/**
 帮助
 */
#define HYC_Help [NSString stringWithFormat:@"%@hotspot/index1h5",IPHost]
/**
 意见反馈
 */
#define HYC_SaveFeedBack [NSString stringWithFormat:@"%@saveFeedBack",IPHost]
/**
 优惠券
 */
#define HYC_FindBonuses [NSString stringWithFormat:@"%@bonuses/findBonusesByType",IPHost]
/**
 红包规则
 */
#define HYC_JXQgz [NSString stringWithFormat:@"%@rule/coupon",IPHost]
/**
 查看邀请奖励规则
 */
#define HYC_Yqhy [NSString stringWithFormat:@"%@rule/reward",IPHost]

/**
 公司介绍
 */
#define HYC_Compony [NSString stringWithFormat:@"%@hotspot/compony",IPHost]

/**
 充值
 */
#define HYC_Recharge [NSString stringWithFormat:@"%@payment/readyPay",IPHost]
/**
 充值回调地址
 */
#define HYC_RechargeSuccess [NSString stringWithFormat:@"%@payment/fuyouPayGoldSuccess",IPHost]

/**
 用户注册协议
 */
#define HYC_RegisterProtocol [NSString stringWithFormat:@"%@protocol/register",IPHost]

/**
 支付开通协议
 */
#define HYC_PaymentProtocol [NSString stringWithFormat:@"%@protocol/payment",IPHost]
/**
 投资协议
 */
#define HYC_InvestmentProtocol [NSString stringWithFormat:@"%@protocol/investment",IPHost]


/**
 公司信息
 */
#define HYC_CommonParam [NSString stringWithFormat:@"%@commonParam",IPHost]

/**
 是否打开网页

 */
#define HYC_Version200 [NSString stringWithFormat:@"%@home/version200",IPHost]
//let JCW_RedbagRuler = IPHost_Swift + "rule/redPacket"
//红包规则
#define HYC_RedbagRuler [NSString stringWithFormat:@"%@rule/redPacket",IPHost]
/**
 版本号

 */
#define HYC_Version [NSString stringWithFormat:@"%@home/version",IPHost]

/**
 一键默认
  */
#define HYC_UserEstimate_DefaultLevel [NSString stringWithFormat:@"%@userEstimate/updateUserDefaultLevel",IPHost]

/**
 立即投资check
 */
#define HYC_UserEstimate_FindUserMaxInvest [NSString stringWithFormat:@"%@userEstimate/findUserMaxInvest",IPHost]
/**
 评测列表取得
 */
#define HYC_EstimateQuestion [NSString stringWithFormat:@"%@estimateQuestion/estimateQuestionList",IPHost]
/**
 用户评测信息保存
 */
#define HYC_EstimateUserLevel [NSString stringWithFormat:@"%@estimateQuestion/estimateUserLevel",IPHost]
/**
 用户评测信息保存
 */
#define HYC_Reminder [NSString stringWithFormat:@"%@protocol/reminder",IPHost]
/**
 我的卡券列表
 */
#define HYC_MyWallet_AwardTypeList [NSString stringWithFormat:@"%@myWallet/cdkeyTypeList",IPHost]
/**
 我的卡券详情
 */
#define HYC_MyCDKeyList [NSString stringWithFormat:@"%@myWallet/myCDKeyList",IPHost]
/**
 我的卡券规则说明
 */
//#define HYC_CdkRole [NSString stringWithFormat:@"%@hotspot/cdkeyRole",IPHost]
#define HYC_CdkRole [NSString stringWithFormat:@"%@rule/cdkey",IPHost]

/**
 查看协议
 */
#define HYC_Protocol_Investment2 [NSString stringWithFormat:@"%@protocol/investment2",IPHost]


/**
 我的界面未读消息
 */
#define HYC_Account_SysAlertNoRead [NSString stringWithFormat:@"%@account/sysAlertNoRead",IPHost]






/**********************广告页***********************/
#define JCW_homeAdParam [NSString stringWithFormat:@"%@home/advert",IPHost]
/**********************广告页***********************/




/**********************更多界面***********************/

/**
 * 更多首界面接口
 */
#define JCW_moreMore [NSString stringWithFormat:@"%@/more/more",IPHost]
/**********************更多界面***********************/


/**********************个人设置***********************/

/**
 * 风险评测 传入等级(levelType) 返回描述
 */
#define JCW_estimateLevel [NSString stringWithFormat:@"%@estimateQuestion/estimateLevel",IPHost]

/**********************个人设置***********************/


/**********************提现界面***********************/

/**
 * 提现实际到账金额
 */
#define JCW_WithdrawActualAmt [NSString stringWithFormat:@"%@withdraw/withdrawActualAmt",IPHost]

/**********************提现界面***********************/



/**********************新登录注册追加接口***********/

/**
 * 检查手机号是否已注册接口
 */
#define JCW_CheckMobile [NSString stringWithFormat:@"%@checkMobile",IPHost]

/**********************新登录注册追加接口***********/

/**********************邀请好友参数获取***********/
/**
 * 邀请好友参数获取
 */
#define JCW_HomeSystem [NSString stringWithFormat:@"%@inviteParam",IPHost]
/**********************邀请好友参数获取***********/



/***********************宝付支付调起********************/

/**
 * 宝付支付调起API
 */
#define JCW_BaofooPaymentSubmit [NSString stringWithFormat:@"%@payment/confirmPay",IPHost]

/***********************宝付支付调起********************/

/***********************获取服务器地址********************/

/**
 * 获取服务器地址
 */
#define JCW_GetServerURL @"https://admin.ziyijinfu.com/api/getServerURL"

/***********************获取服务器地址********************/

#endif /* API_h */
